-- GENERATED SPELL FOR [Unbound Trickster] --


function spell0_30856(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13341,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30856', 567, 1)
end

function spell1_30856(pUnit, Event) --@Ignite,n/a--
pUnit:FullCastSpellOnTarget(58438,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30856', 11500, 1)
end

function spell2_30856(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30856', 622, 1)
end

function Sorts_30856(pUnit, Event)
local choix_sorts_30856 = math.random(0, 2)
if choix_sorts_30856 == 0 then
pUnit:RegisterEvent('spell0_30856', 1, 1)
end
if choix_sorts_30856 == 1 then
pUnit:RegisterEvent('spell1_30856', 1, 1)
end
if choix_sorts_30856 == 2 then
pUnit:RegisterEvent('spell2_30856', 1, 1)
end
end

function mob30856_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30856', math.random(1500, 3000), 1)
end

function mob30856_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30856_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30856_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30856, 1, 'mob30856_Action')
RegisterUnitEvent(30856, 2, 'mob30856_Leave')
RegisterUnitEvent(30856, 3, 'mob30856_Kill')
RegisterUnitEvent(30856, 4, 'mob30856_Die')
